﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Arc.WinForms.Controls;
using Arc.DairyMan.DairyMan.DataAccess;

namespace Arc.DairyMan.DairyMan.UI
{
    public partial class frmMain : ArcForm
    {
        public frmMain()
        {
            InitializeComponent();
            this.IsMdiContainer = true;
        }

        private void sabhasadMasterToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ShowForm(new frmSabhasad());
        }

        private void milkCollectionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ShowForm(new frmMilkCollection());
        }

        void ShowForm(ArcForm Frm)
        {
            Frm.MdiParent = this;
            Frm.StartPosition = FormStartPosition.CenterScreen;
            Frm.Show();
        }

        private void paymentInquiryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ShowForm(new frmPayment());
        }

        private void tankReportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ShowForm(new frmTankReport());
        }

        private void sabhasadReportToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ShowForm(new frmSabhasadReport());
        }

        private void settingToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ShowForm(new frmSettings());
        }

        private void chukavnuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ShowForm(new frmChukavnu());
        }

        private void testToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ShowForm(new frmTest());
        }
    }
}
